#include "RunningSoldierEntity.h"




RunningSoldierEntity::RunningSoldierEntity(int id, int type, double x, double y, Rect* rangeOfEffect)
{
	initData(id, type, x, y, rangeOfEffect);
}

void RunningSoldierEntity::updateData(int type, int action)
{
	if (type == ACTIONS_STOP_FLYING) {
		getArmyData()->_actions = ACTIONS_STOP_FLYING;
	} else if (type == ACTIONS_IS_HURT) {
		_armyPhysics->setIsHurt(ACTIONS_IS_HURT, action);
	}
}
